@import "mixins/mixins";
@import "common/var";
@import "./popper";

@include b(select-dropdown) {
  position: absolute;
  z-index: #{$--index-top + 1};
  border: getProp("select-dropdown-border");
  border-radius: $--border-radius-base;
  background-color: getProp("select-dropdown-background");
  box-shadow: getProp("select-dropdown-shadow");
  box-sizing: border-box;
  margin: 5px 0;

  @include when(multiple) {
    & .el-select-dropdown__item {
      padding-right: 40px;
    }
    & .el-select-dropdown__item.selected {
      color: $--select-option-selected-font-color;
      background-color: getProp("select-dropdown-background");

      &.hover {
        background-color: $--select-option-hover-background;
      }

      &::after {
        position: absolute;
        right: 20px;
        font-family: 'element-icons';
        content: "\e6da";
        font-size: 12px;
        font-weight: bold;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
      }
    }
  }

  .el-scrollbar.is-empty .el-select-dropdown__list{
    padding: 0;
  }
}

@include b(select-dropdown__empty) {
  padding: getProp("select-dropdown-empty-padding");
  margin: 0;
  text-align: center;
  color: getProp("select-dropdown-empty-color");
  font-size: $--select-font-size;
}

@include b(select-dropdown__wrap) {
  max-height: getProp("select-dropdown-max-height");
}

@include b(select-dropdown__list) {
  list-style: none;
  padding: getProp("select-dropdown-padding");
  margin: 0;
  box-sizing: border-box;
}
